*{
    margin: 0;
    padding: 0;
}

#box{
    width: 800px;
    height: 400px;
    background: #ccc;
    margin: 100px auto;
    position: relative;
    overflow: hidden;
}

#box .imglist li{
    list-style: none;
    width: 800px;
    height: 400px;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 24px;
    color: #fff;
    text-align: center;
    line-height: 400px;
}

#box .imglist li img {
    display: block;
    width: 100%;
    height: 100%;
}
#box .imglist li:nth-child(1) {
    background: lightsalmon;
}

#box .imglist li:nth-child(2) {
    background: lightcoral;
}

#box .imglist li:nth-child(3) {
    background: lightpink;
}

#box .imglist li:nth-child(4) {
    background: lightskyblue;
}

#box .imglist li:nth-child(5) {
    background: limegreen;
}

/* 左右按钮 */
#box .position{
    width: 800px;
    height: 50px;
    /* background: #ccc; */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

#box .position p{
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 20px;
    color: #fff;
    background: mediumpurple;
    position: absolute;
    top: 0;
    display: none;
}

#box .position .prev{
    left: 0;
}

#box .position .next{
    right: 0;
}

/* 焦点 */

#box .point{
    width: 800px;
    height: 20px;
    /* background: #ccc; */
    position: absolute;
    left: 0;
    bottom: 10px;
    text-align: center;
}

#box .point span{
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #888;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
}

#box .point .active{
    background: lightcoral;
}